<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta name="Author" content="">
    <title>语轶商务咨询有限公司</title>
    <link href="${pageContext.request.contextPath}/css/css_whir.css" rel="stylesheet" type="text/css" />
    <script src="${pageContext.request.contextPath}/Script/jquery-1.4.2.min.js" type="text/javascript"></script>
<!--[if IE 6]>
<script src="Script/pngAlaph.js"></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->

</head>
<body>
    
    <!--top-->
    <%@ include file="head.jsp"%>
    <!--top End-->
    
    <!--Star-->
    <div class="Body_bg">
    <div class="Banner" style="background:url(${pageContext.request.contextPath}/images/temp/Ban_news.jpg) no-repeat center top;"><div class="bg"></div></div>
    <div class="Content">  
    
           <!--Sidebar-->
           <div class="Sidebar">
                          <div class="Menu">
                  <h4><img src="${pageContext.request.contextPath}/images/Nav_news.png" /></h4>
                  <ul>
                         <li><a id="menu1" href="${pageContext.request.contextPath}/news/show?ntype=1&pageNum=1">公司新闻</a></li>
                         <li class="End"><a id="menu2" href="${pageContext.request.contextPath}/news/show?ntype=2&pageNum=1">行业新闻</a></li>
                         <li><a  id="menu" href="${pageContext.request.contextPath}/news/show?ntype=3&pageNum=1">热点信息</a></li>
                  </ul>
               </div>
           </div>
           <!--Sidebar End-->
           <!--Right-->
           <div class="RightSidebar">
                <div class="Current">您现在的位置：首页 > 新闻资讯 </div>
                <div class="MainContent">
                 
                        <!--Star-->
                        <ul class="News_list">
                            <c:forEach items="${pi.list}" var="news" varStatus="i">
                                <li>
                                    <h4><span><fmt:formatDate value="${news.ntime}" pattern="yyyy-MM-dd"/></span>
                                        <a href="${pageContext.request.contextPath}/news/info?nid=${news.nid}">${news.ntitle}
                                        </a>
                                    </h4>
                                    <dl>${news.ntitle}......点击查看详情</dl>
                                </li>
                            </c:forEach>


                        </ul>
                        <!--Pages-->
                        <div class="Pages">
                            <span >目前在第<b>${pi.pageNum}</b>页,</span>
                            <span class="p_count">共有<b>${pi.pages}</b>页,</span>
                            <span class="p_total">本页共有<b>${pi.size}</b>条记录</span>
                            <span class="p_page">
                              <a href="${pageContext.request.contextPath}/news/show?ntype=${param.ntype}&pageNum=1" class="a_first">首页</a>
                           <c:if test="${pi.hasPreviousPage}">
                               <a href="${pageContext.request.contextPath}/news/show?ntype=${param.ntype}&pageNum=${pi.pageNum-1}" class="a_prev">上一页</a>
                           </c:if>
                            <c:forEach begin="1" end="${pi.pages}" var="index">
                                <c:if test="${pi.pageNum==index}">
                                    <li class="active" style="display: inline;">
                                        <a href="${pageContext.request.contextPath}/news/show?ntype=${param.ntype}&pageNum=${index}" style=" line-height: 20px;color: black; text-decoration: none;padding: 10px 10px;">${index}</a>
                                    </li>
                                </c:if>
                                <c:if test="${pi.pageNum!=index}">
                                    <li class="" style="display: inline;">
                                        <a href="${pageContext.request.contextPath}/news/show?ntype=${param.ntype}&pageNum=${index}" style=" line-height: 20px;color: black; text-decoration: none;padding: 10px 10px;">${index}</a>
                                    </li>
                                </c:if>

                            </c:forEach>

                            <c:if test="${pi.hasNextPage}">
                                <a href="${pageContext.request.contextPath}/news/show?ntype=${param.ntype}&pageNum=${pi.pageNum+1}" class="a_next">下一页</a>
                            </c:if>
                             <a href="${pageContext.request.contextPath}/news/show?ntype=${param.ntype}&pageNum=${pi.pages}" class="a_end">末页</a>

                          </span>
                        </div>
                        <!--Pages-->
                        <!--End-->
                
                <div class="clear"></div>      
                </div>
           </div>
           <!--Right End-->

    <div class="space25"></div>                   
    </div>
    </div>
    <!--End-->
    
    <!--bottom-->
    <%@ include file="tail.jsp"%>

    <!--bottom End-->
    
<%--    <script type="text/javascript" language="javascript">--%>
<%--       jQuery("#nav5").attr("class","onnav");--%>
<%--	   jQuery("#menu1").attr("class","acur");--%>
<%--    </script>--%>
</body>
</html>
